home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / do-eve1r / form2.frm < prev    next >
Text File  |  1998-12-26  |  2KB  |  59 lines

  1. VERSION 5.00
  2. Begin VB.Form Form2 
  3.    BackColor       =   &H00000000&
  4.    Caption         =   "Form2"
  5.    ClientHeight    =   3450
  6.    ClientLeft      =   60
  7.    ClientTop       =   450
  8.    ClientWidth     =   5070
  9.    Icon            =   "Form2.frx":0000
  10.    LinkTopic       =   "Form2"
  11.    ScaleHeight     =   3450
  12.    ScaleWidth      =   5070
  13.    StartUpPosition =   3  'Windows Default
  14.    Begin VB.CommandButton Command2 
  15.       Caption         =   "&Cancel"
  16.       Height          =   495
  17.       Left            =   1200
  18.       TabIndex        =   2
  19.       Top             =   2880
  20.       Width           =   975
  21.    End
  22.    Begin VB.CommandButton Command1 
  23.       Caption         =   "&Send"
  24.       Height          =   495
  25.       Left            =   120
  26.       TabIndex        =   1
  27.       Top             =   2880
  28.       Width           =   975
  29.    End
  30.    Begin VB.TextBox Text1 
  31.       BackColor       =   &H00800000&
  32.       ForeColor       =   &H0000FFFF&
  33.       Height          =   2655
  34.       Left            =   120
  35.       MultiLine       =   -1  'True
  36.       ScrollBars      =   2  'Vertical
  37.       TabIndex        =   0
  38.       Top             =   120
  39.       Width           =   4815
  40.    End
  41. End
  42. Attribute VB_Name = "Form2"
  43. Attribute VB_GlobalNameSpace = False
  44. Attribute VB_Creatable = False
  45. Attribute VB_PredeclaredId = True
  46. Attribute VB_Exposed = False
  47. Private Sub Command1_Click()
  48. Form1.Winsock2.RemoteHost = ip
  49. Form1.Winsock2.SendData "Meg " & Form1.Winsock2.LocalIP & " says: " & Text1.Text
  50. Form3.Text1.SelText = Form1.Winsock2.LocalIP & " says: " & Text1.Text
  51. Form3.Show
  52. Unload Me
  53. End Sub
  54.  
  55. Private Sub Command2_Click()
  56. Unload Me
  57. End Sub
  58.  
  59.